

const express = require('express')
const router = express.Router()

const controls = require('./controls')

router.get('/login', controls.login)
router.get('/qqq', controls.qqq)

// router.get('/qqq', (req, res) => {
//     res.setHeader('Access-Control-Allow-Origin', "*")  //  允许所有的请求访问
//     // res.send({ id: 1, name: 'jack' })
//     // res.json({ id: 1, name: 'jack' })
//     res.jsonp({ id: 1, name: 'jack' })
// })








module.exports = router